<!--  -->
<template>
  <div>
    <!-- 面包屑 -->
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>商品管理</el-breadcrumb-item>
      <el-breadcrumb-item>规格参数</el-breadcrumb-item>
    </el-breadcrumb>
    <!-- 卡片视图区 -->
    <el-card>
      <el-row :gutter="20">
        <el-col :span="6">
          <Menu @tree-node-click="treeNodeClick"></Menu>
        </el-col>
        <el-col :span="18">
          <Prosysattr ref="prosysattr"></Prosysattr>
        </el-col>
      </el-row>
    </el-card>
  </div>
</template>

<script>
import Menu from './components/Menu'
import Prosysattr from './Prosysattr'
export default {
  data () {
    return {
    };
  },
  components:{
    Menu,Prosysattr
  },
  methods: {
    // 子组件树被点击传回来数据 node节点
    treeNodeClick(data,node,component){
      // console.log(data,node,component)
      this.$refs.prosysattr.getDataList(data.catId)
    }
  },
}

</script>
<style lang='less' scoped>
</style>